package cn.hairui.fastms.core.service;

import cn.hairui.fastms.core.bean.SRole;
import cn.hairui.fastms.core.bean.SUserRole;
import cn.hairui.fastms.core.mapper.SUserRoleMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户角色信息表 服务实现类
 * </p>
 *
 * @author lihairui
 * @since 2020-12-27
 */
@Service
public class SUserRoleServiceImpl extends ServiceImpl<SUserRoleMapper, SUserRole> implements SUserRoleService {

    @Autowired
    private SUserRoleMapper sUserRoleMapper;

    @Override
    public List<SRole> selectRolesByUserAccount(String userAccount) {
        return sUserRoleMapper.selectRolesByUserAccount(userAccount);
    }

    @Override
    public boolean removeByUserAccounts(List<String> idList) {
        return sUserRoleMapper.removeByUserAccounts(idList);
    }
}
